﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

using transportsystem.DTO;
using transportsystem.DAO;

namespace transportsystem.BUS
{
    public class PhanQuyenBUS
    {
        public static DataTable getPhanQuyenList()
        {
            return PhanQuyenDAO.getPhanQuyenList();
        }

        public static bool updatePhanQuyen(PhanQuyen x)
        {
            return PhanQuyenDAO.updatePhanQuyen(x);
        }

        public static bool deletePhanQuyen(PhanQuyen x)
        {
            return PhanQuyenDAO.deletePhanQuyen(x);
        }
        //tcp update
        public static DataTable layPhanQuyenTheoMa(int mapq)
        {
            return PhanQuyenDAO.layPhanQuyenTheoMa(mapq);
        }
    }
}
